#ifndef TCPCLIET_H
#define TCPCLIET_H

#include <QDialog>
#include <QtNetwork>
#include <QTcpSocket>
#include <QDebug>


namespace Ui {
class TcpCliet;
}

class TcpCliet : public QDialog
{
    Q_OBJECT

public:
    explicit TcpCliet(QWidget *parent = 0);
    ~TcpCliet();

private slots:
    void on_pushButton_clicked();
    void InfoSent();
    void dataRecv();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::TcpCliet *ui;
    QTcpSocket *client;
    void closeSocket();
    void sendContent();
    bool ifConnect;
};

#endif // TCPCLIET_H
